package com.sh.rbac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sh.rbac.domain.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lucky
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2024-04-04 21:47:19
* @Entity com.sh.springbootrbac.domain.Role
*/
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRolesByUserId(@Param("userId") Long userId);

    List<Long> getRoleAuth(@Param("roleId") Long roleId);
}




